package com.pearl.jacksoncore.demo.databind.anno;

import com.fasterxml.jackson.annotation.JsonTypeId;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * @author TD
 * @version 1.0
 * @date 2024/3/26
 */
//@JsonTypeName("teacher")
public class Teacher extends Person{
/*    protected Teacher() {
        super("teacher");
    }*/

    @JsonTypeId
    private String typeId;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
}
